const expressJWT = require(`express-jwt`)

//管理员token
const jwtAuth = expressJWT({
    secret: `admins`,
    algorithms: [`HS256`],
    credentialsRequired: false,
}).unless({
    path: ['/admins/login','/salesmans/login','/customers/getOneCustomer','/register']
})



module.exports = jwtAuth
